package com.sky.repository;

import com.sky.entity.UserActionLog;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserActionLogRepository extends MongoRepository<UserActionLog, String> {
    List<UserActionLog> findTop50ByuIdOrderByTimestampDesc(Integer id);
}